package system.dao;

import com.jfinal.plugin.activerecord.Db;

/**
 * Created by Administrator on 2017/3/14.
 */
public class UserDao {

    public int getIdByName(String username){
        return Db.queryInt("select user_id from user where user_name = ?", username);
    }
}
